<!DOCTYPE html>
<html>
<head>
    <title>报名系统</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

    <meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.
">
    <link rel="shortcut icon" type="image/x-icon" href="__PUBLIC__/imgs/favicon.ico" media="screen" />
    <link rel="stylesheet" href="__PUBLIC__/lib/weui.min.css">
    <link rel="stylesheet" href="__PUBLIC__/css/jquery-weui.css">

</head>

<body ontouchstart>


    <div class="weui-msg">
        <div class="weui-msg__icon-area"><i class="weui-icon-success weui-icon_msg"></i></div>
        <div class="weui-msg__text-area">
            <h2 class="weui-msg__title">报名成功</h2>
            <p class="weui-msg__desc">您的报名序号：<a href="javascript:void(0);" style="color: red">{$Think.session.showseq}</a></p>
            <p class="weui-msg__desc">支付方法：请使用丰收互联APP扫描页面下方的二维码，并在支付页面的备注栏填写上方的报名序号。</p>
            <p></p><span style="color: red">报名序号必须备注否则无效</span></span></p>
        </div>
        <div class="weui-msg__opr-area">
            <p class="weui-btn-area">
                <a href="__APP__" class="weui-btn weui-btn_primary">返回重新报名</a>
            </p>
        </div>
        <div class="weui-msg__extra-area">
            <div class="weui-footer">
                <p class="weui-footer__links">
                    <a href="javascript:void(0);" class="weui-footer__link">服务电话：</a>
                </p>
                <p class="weui-footer__text">报名过程中的疑问请拨打如上电话</p>
            </div>
        </div>
    </div>
    <div class="weui-form-preview">
        <div class="weui-form-preview__hd">
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">支付金额金额</label>
                <em class="weui-form-preview__value">¥{$Think.session.paymoney}</em>
            </div>
        </div>
        <div class="weui-form-preview__bd">
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">节目名称</label>
                <span class="weui-form-preview__value">{$Think.session.showname}</span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">参赛人数</label>
                <span class="weui-form-preview__value">{$Think.session.pnum}人</span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">报名单价</label>
                <span class="weui-form-preview__value">{$Think.session.money}元/人</span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">报名总价</label>
                <span class="weui-form-preview__value">{$Think.session.totalmoney}元</span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">优惠金额</label>
                <span class="weui-form-preview__value">{$Think.session.salemoney}元</span>
            </div>

        </div>
        <div class="weui-form-preview__ft">
            <a class="weui-form-preview__btn weui-form-preview__btn_primary" href="javascript:">支付二维码如下</a>
        </div>
    </div>


<script src="//cdn.bootcss.com/jquery/1.11.0/jquery.min.js"></script>
<script src="__PUBLIC__/lib/fastclick.js"></script>
<script>
    $(function() {
        FastClick.attach(document.body);
    });
</script>
<script src="__PUBLIC__/js/jquery-weui.js"></script>
<script src="__PUBLIC__/js/comm.js"></script>

<script>

    
    
    $("#addp").click(
        function (event) {
            var divnum = $("#divadd > div").length;
            var indexnum = divnum/2 - 1;
            $("#divadd").append('<div class="weui-cell">\n' +
                '            <div class="weui-cell__hd"><label class="weui-label">参加人姓名</label></div>\n' +
                '            <div class="weui-cell__bd">\n' +
                '                <input class="weui-input" type="text"  placeholder="参加人员姓名">\n' +
                '            </div>\n' +
                '        </div>');
            $(".weui-input:last").attr('name', "p["+indexnum+"][pname]");
            $("#divadd").append('<div class="weui-cell">\n' +
                '            <div class="weui-cell__hd"><label class="weui-label">身份证号码</label></div>\n' +
                '            <div class="weui-cell__bd">\n' +
                '                <input class="weui-input" type="number" placeholder="参赛人身份证号码">\n' +
                '            </div>\n' +
                '        </div>')
            $(".weui-input:last:last").attr('name', "p["+indexnum+"][pid]");
            $("#pnum").val(parseInt($("#pnum").val())+1);
            console.log("aaaa")
        }
    )
    


</script>

</body>
</html>
